/**
 * @file   Event.java
 * @author Enrique Madrid <emadridm@gmail.com>
 * @date   Mon Jul 16 12:18:01 2007
 * 
 */

package com.myt.matp.core;

public final class Event extends Msg {

    // Event type
    public static final int TYPE_NONE = 0; // Reservado
    public static final int TYPE_NOTIFY = 1; // Eventos del sistema.
    public static final int TYPE_COMMAND = 2; // Eventos del GUI.

    // UI events
    public static final int UI = 1;
    public static final int UI_CREATE = 2;
    public static final int UI_SHOW = 3;
    public static final int UI_HIDE = 4;
    public static final int UI_KEY_PRESSED = 5;
    public static final int UI_KEY_REPEATED = 6;
    public static final int UI_KEY_RELEASED = 7;
    public static final int UI_POINTER_PRESSED = 8;
    public static final int UI_POINTER_DRAGGED = 9;
    public static final int UI_POINTER_RELEASED = 10;
    public static final int UI_PAINT = 11;
    public static final int UI_REPAINT = 12;
    public static final int UI_RENDERER = 13;
    public static final int UI_COMMAND = 14;
    public static final int UI_SELECT = 15;
    public static final int UI_TAB = 16;
    public static final int UI_MENU = 17;
    public static final int UI_BACK = 18;
    public static final int UI_ENTER = 19;
    public static final int UI_RESIZE = 20;
    public static final int UI_RESERVED = 21;

    // Command events (parece que esto no se va a usar)
    public static final int CM = 100;
    public static final int CM_MENU = 101;

    // Scheduler events 
    public static final int SC = 200;
    public static final int SC_ALARM = 201;

    // Network events
    public static final int NE= 300;

    // User events
    public static final int US = 500;

    private int m_Type = TYPE_NONE;

    Event(int id) {
	super(id);
    }

}
